import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//引入qs
import qs from 'qs'

const app=createApp(App)

import './assets/css/reset.css'

import 'swiper/swiper-bundle.min.css';

import './assets/css/iconfont.css'

//基础样式
import 'swiper/swiper.min.css'

import axios from 'axios'
import VueAxios from 'vue-axios'

import FastClick from 'fastclick'
FastClick.attach(document.body)

import ElementPlus from 'element-plus'

import 'element-plus/dist/index.css'

//配置公共请求路径
axios.defaults.baseURL='http://127.0.0.1:8093'
//配置公共图片路径===》需要修改vue实例的原型，向原型添加一个新的属性【达到所有的组件都能使用该属性的操作】
//vue2.x===>import Vue from 'vue'  Vue.prototype.$属性名=值
//vue3.x===>
app.config.globalProperties.$Imgurl='http://127.0.0.1:8093/api/public'
//向原型添加qs插件【使用：this.$qs.函数名】
app.config.globalProperties.$qs=qs

app.use(store).use(router).use(VueAxios,axios).use(ElementPlus).mount("#app");
